package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.io.Serializable;

/**
 * 课程信息表(Course)实体类
 *
 * @author makejava
 * @since 2024-05-10 16:15:23
 */
public class Course implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 课程id
     */
    private Long courseId;
    /**
     * 课程名称
     */
    private String courseName;
    /**
     * 课程简介
     */
    private String content;
    /**
     * 课程图片
     */
    private String headImg;
    /**
     * 课时
     */
    private int periods;

    private BigDecimal credit;

    private Long[] attachmentIds;

    private Long[] topicIds;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 修改用户
     */
    private String updateBy;
    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 创建用户
     */
    private String createBy;

    @Override
    public String toString() {
        return "Course{" +
                "courseId=" + courseId +
                ", courseName='" + courseName + '\'' +
                ", content='" + content + '\'' +
                ", headImg='" + headImg + '\'' +
                ", periods=" + periods +
                ", credit=" + credit +
                ", attachmentIds=" + Arrays.toString(attachmentIds) +
                ", topicIds=" + Arrays.toString(topicIds) +
                ", createTime=" + createTime +
                ", updateBy='" + updateBy + '\'' +
                ", updateTime=" + updateTime +
                ", createBy='" + createBy + '\'' +
                '}';
    }

    public BigDecimal getCredit() {
        return credit;
    }

    public void setCredit(BigDecimal credit) {
        this.credit = credit;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public int getPeriods() {
        return periods;
    }

    public void setPeriods(int periods) {
        this.periods = periods;
    }

    public Long[] getAttachmentIds() {
        return attachmentIds;
    }

    public void setAttachmentIds(Long[] attachmentIds) {
        this.attachmentIds = attachmentIds;
    }

    public Long[] getTopicIds() {
        return topicIds;
    }

    public void setTopicIds(Long[] topicIds) {
        this.topicIds = topicIds;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

}

